<?php

    if(!isset($_SESSION)) @session_start(); // inicia a sessão caso ainda nao tenha ocorrido
    
    require_once '../../controller/relatorios/' . basename(__FILE__);
    
    if ( !$_SESSION["_usuario"] ){
    	$url = $_SERVER["REQUEST_URI"];
    	$url = substr( $url, strpos( $url, '/view/' ) );
    	
    	header("Location: ../../view/autenticacao/autenticacao.php?method=expire&url=$url");
    }
    
?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
    <head>
        <!-- <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' /> -->
        <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" />
        <title>SGC - Sistema de Gestão de Contratos</title>
        <link href='../../template/css/estiloPrint.css' rel='stylesheet' type='text/css' media='print' />
    </head>
    <body class="oficio">
    	<div id="topo">Prefeitura de Fortaleza</div>
    	<div id="numero">Ofício N <?php echo $numero ?> </div>
    	<div id="data"><?php echo $data ?></div>
    	<p class="saudacaoInicio"><?php echo $saudacaoInicio ?></p>
    	<?php echo $conteudo ?>
    	<p class="saudacaoFim">Atenciosamente</p>
    	<p class="assinatura"><?php echo $assinaturaNome ?><br/><?php echo $assinaturaCargo ?></p>
    	<p class="destinatario">
    		<?php echo ( $destinatarioSexo == 'm') ? 'Ilmo. Sr.' : 'Ilma. Sra.' ?><br/>
    		<?php echo $destinatarioNome ?><br/>
    		<?php echo $destinatarioCargo ?>
    	</p>
    	<div id="rodape"></div>
    </body>
</html>